package com.example.demo.handler

import org.springframework.stereotype.*
import xyz.erupt.annotation.`fun`.*

@Component // 可以使用依赖注入等操作
class AutoCompleteHandlerImpl : AutoCompleteHandler {
    override fun completeHandler(value: String?, param: Array<out String>?): MutableList<Any> {
        val list: MutableList<Any> = ArrayList()
        for (i in 0..25) {
            list.add(value.toString() + " -> " + (i + 64).toChar())
        }
        return list
    }
}
